|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnegotiator.Agent
agents.anac.y2010.Southampton.SouthamptonAgent
agents.anac.y2010.Southampton.similarity.SimilarityAgent
public abstract class SimilarityAgent
| Field Summary | |
|---|---|
protected java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> |
bestOpponentBidUtilityHistory
The best bids (in terms of our utility) that we have seen from the opponent. |
protected double |
utility0
The utility (to us) of the first bid made by the opponent. |
protected double |
utility1
The expected utility (to us) of the final bid made by the opponent. |
| Fields inherited from class agents.anac.y2010.Southampton.SouthamptonAgent |
|---|
acceptMultiplier, bidSpace, MAXIMUM_ASPIRATION, myLastAction, myLastBid, myPreviousBids, opponentBids, opponentIsHardHead, opponentModel, opponentPreviousBid |
| Fields inherited from class negotiator.Agent |
|---|
fNegotiation, parametervalues, sessionNr, sessionsTotal, startTime, strategyParameters, timeline, totalTime, utilitySpace |
| Constructor Summary | |
|---|---|
SimilarityAgent()
|
|
| Method Summary | |
|---|---|
protected Bid |
getRandomBidInRange(double lowerBound,
double upperBound)
Get a random bid in a given utility range. |
protected abstract double |
getTargetUtility(double myUtility,
double opponentUtility)
|
static java.lang.String |
getVersion()
|
void |
init()
This method is called by the protocol every time before starting a new session after the internalInit method is called. |
protected Bid |
proposeInitialBid()
Propose the initial bid. |
protected Bid |
proposeNextBid(Bid opponentBid)
Propose the next bid. |
| Methods inherited from class agents.anac.y2010.Southampton.SouthamptonAgent |
|---|
chooseAction, finalize, getAgentNo, log, ReceiveMessage |
| Methods inherited from class negotiator.Agent |
|---|
endSession, getAgentID, getName, getParameterValues, getSessionNumber, getSessionsTotal, getStrategyParameters, getUniqueIdentifier, getUtility, internalInit, isUIAgent, loadSessionData, parseStrategyParameters, restartDataObjectsFolder, saveSessionData, setAgentID, setName, sleep |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.ArrayList<Pair<java.lang.Double,java.lang.Double>> bestOpponentBidUtilityHistory
protected double utility0
protected final double utility1
| Constructor Detail |
|---|
public SimilarityAgent()
| Method Detail |
|---|
public void init()
Agent
init in class SouthamptonAgentpublic static java.lang.String getVersion()
protected Bid proposeInitialBid()
SouthamptonAgent
proposeInitialBid in class SouthamptonAgentprotected Bid proposeNextBid(Bid opponentBid)
SouthamptonAgent
proposeNextBid in class SouthamptonAgentopponentBid - The bid that has just been made by the opponent.
protected abstract double getTargetUtility(double myUtility,
double opponentUtility)
protected Bid getRandomBidInRange(double lowerBound,
double upperBound)
throws java.lang.Exception
SouthamptonAgent
getRandomBidInRange in class SouthamptonAgentlowerBound - The lower bound on utility.upperBound - The upper bound on utility.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||